<?php
/**
 * Notes:
 * Created by PhpStorm.
 * Author: TS
 * Date: 2019/10/11
 * Time: 17:50
 */

namespace app\validate;


use think\Validate;

class FriendPushValidate extends Validate
{
    protected $rule = [
        "type" => 'require',
        'user_id' => 'require',
        'group_id' => 'require',
        'alias' => 'require'
    ];
    protected $field = [
        "type" => '发起类型',
        'user_id' => '用户标识',
        'group_id' => '好友分组',
        'alias' => '好友备注'
    ];

    protected $scene = [
        'type' => [
            "type" => 'require'
        ],
        'group' => [
            'user_id' => 'require',
        ],
        'friend' => [
            'user_id' => 'require',
            'group_id' => 'require',
            'alias' => 'require'
        ]
    ];

}